package com.shengzai

object Code12Function03 {
  def main(args: Array[String]): Unit = {
    println(fun2(10))
    println(fun3(10,30))
  }

  def fun1(a: Int,b:Int ) :Int ={
    return a*b
  }

  def fun2(a:Int):Int ={
    fun1(a,a)
  }

  def fun3(a:Int,b:Int ) : Int= {
    fun1(a,b) * fun2(a)
  }

}
